package com.atguigu03._extends;

/**
 * ClassName: PersonTest
 * Description:
 *
 * @Author liu
 * @Create 2024/10/27 19:00
 * @Version 1.0
 */
public class ExtendsTest {
    public static void main(String[] args) {
        Person p1 = new Person();
        p1.name = "tony";
//        p1.age=12;
        p1.eat();

        System.out.println(p1.toString());

        student s1 = new student();
        s1.name = "tom";
        s1.eat();
    }
}
